package ltTest.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "class")
public class TestClass {

	@Id
	private String id;
	
	private String name;
	private Integer number;
	@DBRef
	private LtTest ltTest;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public LtTest getLtTest() {
		return ltTest;
	}
	public void setLtTest(LtTest ltTest) {
		this.ltTest = ltTest;
	}
	@Override
	public String toString() {
		return "TestClass [id=" + id + ", name=" + name + ", number=" + number + ", ltTest=" + ltTest + "]";
	}
	
}
